<?php
defined('ROOTPATH') OR exit('No direct script access allowed');
/**
 * Autoload
 */
use STONENYY\View as View;

if (ENVIRONMENT == 'development')
{
    $whoops = new \Whoops\Run;
    $errorTitle = "框架出错了";
    $option = new \Whoops\Handler\PrettyPageHandler();
    $option->setPageTitle($errorTitle);
    $whoops->pushHandler($option);
    $whoops->register();
}

require CORE_PATH.'core.php';
require CORE_PATH.'cache.php';

View::config(['path' => APP_PATH.'/views/']);
